///*
//package com.wodan.zhongjinjicang.controller;
//
//import com.wodan.zhongjinjicang.common.utils.JsonUtils;
//import com.wodan.zhongjinjicang.enums.ResponseCodeEnum;
//import com.wodan.zhongjinjicang.model.ResponseResult;
//import com.wodan.zhongjinjicang.model.UserBean;
//import com.wodan.zhongjinjicang.service.SmsService;
//import org.apache.log4j.Logger;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//
//*/
///**
// *
// * @ClassName: PostController
// * @Description: 帖子
// * @author Administrator
// * @date 2016-7-26 下午12:54:36
// * @history
// *
// *//*
//
//@Controller
//@RequestMapping("/post/")
//public class PostController {
//
//	private static Logger logger = Logger.getLogger(PostController.class);
//
//	@Autowired
//	private SmsService smsService;
//
//
//	@RequestMapping(value="/validCodeSend",method = RequestMethod.POST)
//	@ResponseBody
//	public ResponseResult validCodeSend(HttpServletRequest request,
//										HttpServletResponse response, @RequestParam String message) {
//
//		logger.debug("客户端传入 message:" + message) ;
//
//		try{
//			UserBean user = JsonUtils.jsonToPojo(message, UserBean.class);
//			return smsService.validCodeSend(user);
//		}catch (Exception e) {
//			logger.error("请求参数为:message=" + message, e);
//			return ResponseResult.build(ResponseCodeEnum.FAIL.getCode(), "服务端异常");
//		}
//	}
//}
//*/
